package io;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.Writer;

public class Byte2CharWrite {

	/**
	 * 将字节输出流转化为字符输出流
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
        File file=new File(CharStreamWriteFile.filename);
        Writer out=new OutputStreamWriter(new FileOutputStream(file));
        out.write("hello");
        out.close();
	}

}
